package com.healthy.social.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.healthy.common.core.annotation.Excel;
import com.healthy.common.core.web.domain.BaseEntity;

/**
 * 社区圈子对象 circle_discussions
 * 
 * @author 束伟
 * @date 2024-03-29
 */
public class CircleDiscussions extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 讨论贴的唯一标识符 */
    private Long discussionId;

    /** 所属圈子的ID，外键关联到Circles表的circle_id字段 */
    @Excel(name = "所属圈子的ID，外键关联到Circles表的circle_id字段")
    private Long circleId;

    /** 发布者的ID，外键关联到Users表的user_id字段 */
    @Excel(name = "发布者的ID，外键关联到Users表的user_id字段")
    private Long userId;

    /** 讨论贴的内容 */
    @Excel(name = "讨论贴的内容")
    private String content;

    /** 讨论贴的发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "讨论贴的发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date postedAt;

    /** 讨论贴的最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "讨论贴的最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 是否为精华贴的标志 */
    @Excel(name = "是否为精华贴的标志")
    private Integer isFeatured;

    /** 备用列1 */
    @Excel(name = "备用列1")
    private String spareColumn1;

    /** 备用列2 */
    @Excel(name = "备用列2")
    private String spareColumn2;

    /** 备用列3 */
    @Excel(name = "备用列3")
    private String spareColumn3;

    public void setDiscussionId(Long discussionId) 
    {
        this.discussionId = discussionId;
    }

    public Long getDiscussionId() 
    {
        return discussionId;
    }
    public void setCircleId(Long circleId) 
    {
        this.circleId = circleId;
    }

    public Long getCircleId() 
    {
        return circleId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setPostedAt(Date postedAt) 
    {
        this.postedAt = postedAt;
    }

    public Date getPostedAt() 
    {
        return postedAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }
    public void setIsFeatured(Integer isFeatured) 
    {
        this.isFeatured = isFeatured;
    }

    public Integer getIsFeatured() 
    {
        return isFeatured;
    }
    public void setSpareColumn1(String spareColumn1) 
    {
        this.spareColumn1 = spareColumn1;
    }

    public String getSpareColumn1() 
    {
        return spareColumn1;
    }
    public void setSpareColumn2(String spareColumn2) 
    {
        this.spareColumn2 = spareColumn2;
    }

    public String getSpareColumn2() 
    {
        return spareColumn2;
    }
    public void setSpareColumn3(String spareColumn3) 
    {
        this.spareColumn3 = spareColumn3;
    }

    public String getSpareColumn3() 
    {
        return spareColumn3;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("discussionId", getDiscussionId())
            .append("circleId", getCircleId())
            .append("userId", getUserId())
            .append("content", getContent())
            .append("postedAt", getPostedAt())
            .append("updatedAt", getUpdatedAt())
            .append("isFeatured", getIsFeatured())
            .append("spareColumn1", getSpareColumn1())
            .append("spareColumn2", getSpareColumn2())
            .append("spareColumn3", getSpareColumn3())
            .toString();
    }
}
